
{% extends "PopshouseAdminBundle::layout.html.twig" %}
{% block js %}

 $('textarea').tinymce({
            // Location of TinyMCE script
            script_url : '{{ asset('js/tiny_mce/tiny_mce.js') }}',

            // General options
            theme : "advanced",
             plugins : "table,advhr,advlink,emotions,inlinepopups,preview,media,searchreplace,contextmenu,paste,directionality,fullscreen,noneditable,xhtmlxtras",
            skin : "o2k7",
            skin_variant : "black",
            // Theme options
              theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,forecolor,backcolor,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect,|,preview,fullscreen",
            theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",
            theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl",
            theme_advanced_buttons4 : "",
        
            relative_urls : false,
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_statusbar_location : "bottom",
            theme_advanced_path : false,
            theme_advanced_resizing : true,
            width : "600",
            height: "130",
            
                 /*template_external_list_url : "{{ asset('js/template_list.js') }}",
        external_link_list_url : "{{ asset('js/link_list.js') }}",
        external_image_list_url : "{{ asset('js/image_list.js') }}",
        media_external_list_url : "{{ asset('js/media_list.js') }}",*/
            
            
            content_css : "{{ asset('css/textbox.css') }}"

    });
{% endblock %}
{% block title %}
Nieuws & Promotionele berichten - formulier
{% endblock %}
{% block content %}
<h2>Nieuws & Promotionele berichten</h2>
<form action="#" method="post" {{ form_enctype(form) }}>
            {% form_theme form 'PopshouseSiteBundle::form.html.twig' %}
            {{ form_errors(form) }}
            
            
            <dl>
                {% if news.id is not none %}
                <dt>Huidige afbeelding</dt>
                <dd><img src="{{ asset('images/photo/news/'~news.id~'t.jpg') }}" /></dd>
                <small>Een nieuwe afbeelding uploaden, vervangt de huidige afbeelding</small>
                {% endif %}
                <dt>{{ form_label(form.afbeelding,'Afbeelding') }}</dt>
                <dd>{{ form_widget(form.afbeelding) }}{{ form_errors(form.afbeelding) }}</dd>
                <dt>{{ form_label(form.nl,'Titel Nederlands') }}</dt>
				<dd>{{ form_widget(form.nl) }}{{ form_errors(form.nl) }}</dd>
				<dt>{{ form_label(form.nlText,'Tekst Nederlands') }}</dt>
				<dd>{{ form_widget(form.nlText) }}{{ form_errors(form.nlText) }}</dd>
				<dt>{{ form_label(form.en,'Titel Engels') }}</dt>
				<dd>{{ form_widget(form.en) }}{{ form_errors(form.en) }}</dd>
				<dt>{{ form_label(form.enText,'Tekst Engels') }}</dt>
				<dd>{{ form_widget(form.enText) }}{{ form_errors(form.enText) }}</dd>
				<dt>{{ form_label(form.de,'Titel Duits') }}</dt>
				<dd>{{ form_widget(form.de) }}{{ form_errors(form.de) }}</dd>
				<dt>{{ form_label(form.deText,'Tekst Duits') }}</dt>
				<dd>{{ form_widget(form.deText) }}{{ form_errors(form.deText) }}</dd>
				<dt>{{ form_label(form.fr,'Titel Frans') }}</dt>
				<dd>{{ form_widget(form.fr) }}{{ form_errors(form.fr) }}</dd>
				<dt>{{ form_label(form.frText,'Tekst Frans') }}</dt>
				<dd>{{ form_widget(form.frText) }}{{ form_errors(form.frText) }}</dd>
            </dl>
            
        
        
            {{ form_rest(form) }}
            <input type="submit" value="Opslaan" />
        </form>
{% endblock %}
